package cn.exrick.xboot.modules.transport.gps.config;


import lombok.Getter;

@Getter
public enum GpsErrorCode {

    TOKEN_EXPIRED_CODE(268697631, "登录状态已过期，请重新登录"),
    DATA_CHANGED(269877251, "数据已变更,请刷新"),
    DEVICE_NOT_SUPPORTED(269877252, "设备不支持"),
    INVALID_OPERATION_STATE(269877282, "当前状态不支持此操作"),
    INVALID_PARAMETER(268697607, "参数无效"),
    BACKEND_SERVICE_FAILURE(268697608, "调用后台逻辑服务失败"),
    REMOTE_SERVICE_DESCRIPTION_ERROR(268697648, "无法获取远端服务的描述信息"),
    OPERATION_FREQUENCY_LIMIT(268697629, "操作频率过快,请稍后再试"),
    OPERATION_RESTRICTED(269877293, "操作限制"),
    BATCH_DEVICE_LIMIT(269877324, "该组设备数过多，请分批执行");

    private final Integer code;
    private final String message;

    GpsErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
